package cn.edu.xmu.rocketmqdemo.mapper;

import cn.edu.xmu.rocketmqdemo.model.OrderItemPo;
import cn.edu.xmu.rocketmqdemo.model.OrderPo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrdersMapper {
    Integer insertNewOrder(OrderPo orderPo);

    Integer insertNewOrderItem(OrderItemPo orderItemPo);



    OrderPo selectOrderById(Integer id);

    List<OrderItemPo> selectOrderItemsByOrderId(Integer orderId);
}
